/*
 * AuthCredentials.java
 *
 * Created on May 16, 2007, 3:30 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app.auth;

import org.restlet.data.ChallengeResponse;

/**
 *
 * @author alex
 */
public class AuthCredentials
{
   
   String scheme;
   String name;
   String password;

   public AuthCredentials(ChallengeResponse challengeResponse) {
      scheme = challengeResponse.getScheme().toString();
      name = challengeResponse.getIdentifier();
      password = new String(challengeResponse.getSecret());
   }
   
   /** Creates a new instance of AuthCredentials */
   public AuthCredentials(String scheme,String name,String password)
   {
      this.scheme = scheme;
      this.name = name;
      this.password = password;
   }

   public String getScheme()
   {
      return scheme;
   }

   public void setScheme(String scheme)
   {
      this.scheme = scheme;
   }

   public String getName()
   {
      return name;
   }

   public void setName(String name)
   {
      this.name = name;
   }

   public String getPassword()
   {
      return password;
   }

   public void setPassword(String password)
   {
      this.password = password;
   }
   
}
